
package com.huaweicloud.saaslanding.install.properties;

import static com.huaweicloud.saaslanding.install.constant.ModelConstant.ELB_TLS_PREFIX;

import jakarta.validation.constraints.NotEmpty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import org.springframework.validation.annotation.Validated;

/**
 * 功能描述
 *
 * @since 2022-03-24
 */
@EqualsAndHashCode
@Data
@AllArgsConstructor
@NoArgsConstructor
@Component
@Validated
@ConfigurationProperties(prefix = ELB_TLS_PREFIX)
public class ElbTls {
    /**
     * ELB中前端的ssl证书
     */
    @NotEmpty(message = "ELB中前端的ssl证书(elb.tls.uiCertificate)不能为空")
    private String uiCertificate;

    /**
     * ELB中前端的ssl证书私钥
     */
    @NotEmpty(message = "ELB中前端的ssl证书私钥(elb.tls.uiPrivateKey)不能为空")
    private String uiPrivateKey;

}
